export function loadTableData(that, fun) {
  const { data } = that
  const innerData = Object.assign({}, data)
  if (JSON.stringify(innerData) === '{}') {
    innerData['pageInfo'] = { page: 1, pageSize: 30 }
  }
  delete innerData.data
  fun(innerData).then((res) => {
    that.data = res
  })
}
